add_subdirectory(zlib)
add_subdirectory(png)
add_subdirectory(lua-54)
add_subdirectory(sqlite3)
add_subdirectory(jsoncpp)
add_subdirectory(gtest)

if (CMAKE_SYSTEM_NAME MATCHES Windows)
        if(NOT "${CMAKE_GENERATOR_PLATFORM}" MATCHES "ARM64")
                add_subdirectory(mhook)
        endif()
        message(STATUS "cmake compiler id: ${CMAKE_C_COMPILER_ID}")
        if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_ID MATCHES "GNU")
                message(STATUS "Detected MinGW")
        else()
                add_subdirectory(smiley)
        endif()
        add_subdirectory(7z)
endif()
add_subdirectory(Scintilla)
add_subdirectory(skia)
add_subdirectory(richedit41)